package com.example.burnafterreading.repository;

import com.example.burnafterreading.model.Message;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface MessageRepository extends JpaRepository<Message, Long> {
    Optional<Message> findByAccessKey(String accessKey);
}
